package com.wmh.baseservice.operationaid.pojo.vo.keyWordUsageRecord;

import com.wmh.baseservice.operationaid.entity.KeyWordUsageRecord;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author dongaolong
 * @date 2023/6/22
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class KeyWordUsageRecordRespVO extends ExponentField implements Serializable {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "品类名称")
    private String categoryName;

    @ApiModelProperty(value = "关键词")
    private String name;

    @ApiModelProperty(value = "操作人id")
    private Long adId;

    @ApiModelProperty(value="分组编号")
    private Long groupId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


    static final long serialVersionUID = 42L;

    public static KeyWordUsageRecordRespVO build(KeyWordUsageRecord t) {
        KeyWordUsageRecordRespVO keyWordUsageRecordRespVO = new KeyWordUsageRecordRespVO();
        keyWordUsageRecordRespVO.setId(t.getId());
        keyWordUsageRecordRespVO.setCategoryName(t.getCategoryName());
        keyWordUsageRecordRespVO.setName(t.getName());
        keyWordUsageRecordRespVO.setAdId(t.getAdId());
        keyWordUsageRecordRespVO.setGroupId(t.getGroupId());
        keyWordUsageRecordRespVO.setCreateTime(t.getCreateTime());
        keyWordUsageRecordRespVO.setUpdateTime(t.getUpdateTime());
        keyWordUsageRecordRespVO.setSearchPeopleNum(t.getSearchPeopleNum());
        keyWordUsageRecordRespVO.setSearchCount(t.getSearchCount());
        keyWordUsageRecordRespVO.setClickRate(t.getClickRate());
        keyWordUsageRecordRespVO.setClickPeopleNum(t.getClickPeopleNum());
        keyWordUsageRecordRespVO.setClickCount(t.getClickCount());
        keyWordUsageRecordRespVO.setTransactionAmount(t.getTransactionAmount());
        keyWordUsageRecordRespVO.setPaymentConversionRate(t.getPaymentConversionRate());
        keyWordUsageRecordRespVO.setOnlineGoodsNum(t.getOnlineGoodsNum());
        keyWordUsageRecordRespVO.setMallClickRate(t.getMallClickRate());
        keyWordUsageRecordRespVO.setZtcReferencePrice(t.getZtcReferencePrice());
        keyWordUsageRecordRespVO.setPaymentPeopleNum(t.getPaymentPeopleNum());
        keyWordUsageRecordRespVO.setSearchUsersPerGoods(t.getSearchUsersPerGoods());
        keyWordUsageRecordRespVO.setTransactionAmountPerGoods(t.getTransactionAmountPerGoods());
        keyWordUsageRecordRespVO.setUnitPrice(t.getUnitPrice());
        keyWordUsageRecordRespVO.setVisitorAverageValue(t.getVisitorAverageValue());
        keyWordUsageRecordRespVO.setGoodsAverageValue(t.getGoodsAverageValue());
        keyWordUsageRecordRespVO.setVisitorCompetitionIndex(t.getVisitorCompetitionIndex());
        keyWordUsageRecordRespVO.setHighQualityValueWords(t.getHighQualityValueWords());
        keyWordUsageRecordRespVO.setCompetitionDegree(t.getCompetitionDegree());
        keyWordUsageRecordRespVO.setEstimatedConversionQuantity(t.getEstimatedConversionQuantity());
        keyWordUsageRecordRespVO.setAverageTransactionIndex(t.getAverageTransactionIndex());
        return keyWordUsageRecordRespVO;
    }
}
